@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.scroll_area::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  padding: 0;
}

.scroll_area::-webkit-scrollbar-thumb {
  width: 8px;
  border-radius: 6px;
  background: rgba(128, 133, 144, .15);
  border-left: solid 2px rgba(128, 133, 144, .06);
  border-right: solid 2px rgba(128, 133, 144, .06);
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
//主色调修改
.el-button.el-button--primary {
}

.filter-container .el-form--inline .el-form-item {
  margin-right: 0 !important;
}

//文本超长省略号样式
.over-text {
  text-overflow: ellipsis;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  height: 100%;
  line-height: 100%;
  vertical-align: middle;
}

.el-dialog__body {
  padding: 0 !important;
}

.app-container {
  padding: 20px;

  .operate_header {
    display: flex;
    flex-flow: row-reverse nowrap;
    justify-content: space-between;

    .el-button + .el-button {
      margin-left: 0;
    }
  }

  .hey_tools_btn {
    display: inline-block;
    padding: 0 5px;
    cursor: pointer;
    color: #61C4D3;
  }

  .hey_tools_btn:hover {
    color: #61C4D3;
    text-decoration: underline
  }

  .hey_tools_btn_disable {
    display: inline-block;
    padding: 0 5px;
    cursor: pointer;
    color: #BA404F;
  }

  .hey_tools_btn_disable:hover {
    color: #BA404F;
    text-decoration: underline
  }

  button {
    outline: none;
  }
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }

  .filter-200 {
    width: 200px;
  }
  .hey-flex-item {
    width: 100%;
  }
  .hey-flex-btn {
    display: flex;
    justify-content: flex-end;
  }

  .filter-200 > input.el-input__inner {
    width: 200px;
  }

  .filter-label {

  }

  .no-warn-item.el-form-item {
    margin-bottom: 0;
    height: 47px;
    margin-right: 12px!important;
  }

  .el-date-editor .el-range-separator {
    padding: 0 16px;
  }

  .operate_header {
    display: inline-block;
    position: absolute;
    right: 20px;
  }
}

.form-container {
  border: 1px solid #dfe6ec;
  padding: 15px 22px;

  .hey-form-item-36 {
    height: 36px;
  }

  .el-date-editor .el-range-separator {
    padding: 0 16px;
  }

  .el-select {
    width: 100%;
  }

  .el-date-editor.el-date-editor--date {
    width: 100%;
  }

  .el-dialog__body {
    padding-top: 6px;
  }
}

.submit-area {
  text-align: center;
  margin-top: 16px;
}

.unit {
  font-weight: 700;
  font-size: 14px;
  color: #606266;
}

.unit-item {
  width: 90%;
  margin-right: 4px;
}

.unit-input {
  width: 60px;
  outline: none;
  border: none;
  border-bottom: 1px solid #dfe6ec;
}

.unit-input:not(:first-child) {
  margin-left: 12px;
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.el-date-editor.el-input, .el-date-editor.el-input__inner {
  width: 100% !important;
}

.dialog-container {
  border-top: 1px solid #dfe6ec;
  border-bottom: 1px solid #dfe6ec;
  margin: 10px 0;
  padding: 10px 0;
  text-align: center;
}

.dialog-footer {
  text-align: center;
}

.dib {
  display: inline-block;
}

.hide {
  display: none;
}

.pointer {
  cursor: pointer;
}

.hey-single-table {
  .el-checkbox__inner {
    border-radius: 50%;
  }

  .has-gutter {
    .el-checkbox__inner {
      display: none;
    }
  }
}

.el-switch.status-switch.is-disabled .el-switch__core, .el-switch.status-switch.is-disabled .el-switch__label {
  cursor: pointer;
}

.ov-line, .text-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-2line {
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.max-image {
  width: 100%;
  max-height: 100%;
}

.text-left {
  text-align: left;
}

.red {
  color: red;
}

.green {
  color: #61C4D3;
}

.grey {
  color: #6666;
}

.hey-table-tip {
  font-weight: 700;
  margin: 20px 0;
  font-size: 18px;

  .verticalLine {
    margin: 0 30px;
  }
}

.hey-ov-container {
  max-height: calc(66vh);
  display: flex;
  flex-direction: column;

  .hey-content-wrap {
    flex: 1;
    overflow-y: auto;
    padding-right: 16px;
    margin-right: 0px;
  }
}

.hey-required-img {
  display: flex;

  .el-form-item:last-child {
    .el-form-item__content {
      width: 60px;
      margin-left: 6px!important;
      margin-top: 10px;
    }
  }
}
.hey-flex-select {
  width: 100%;
}
.hey-required-item {
  .el-form-item__label::before {
    content: '*';
    color: #ff4949;
    margin-right: 4px;
  }
}

.hey-message-warning {
  .el-icon-warning {
    font-size: 24px;
  }
  .el-message__content {
    font-size: 16px;
  }
}

.hey-switch {
  &.el-switch.is-disabled {
    opacity: 1;
  }
  .el-switch__core {
    background: #ccc;
  }
  .el-switch__label {
    position: absolute;
    display: none;
    color: #fff!important;
  }
  .el-switch__label * {
    font-size: 12px;
  }
  .el-switch__label--left {
    z-index: 9;
    left: 6px;
  }
  .el-switch__label--right {
    z-index: 9;
    left: -16px;
  }
  .el-switch__label.is-active {
    display: block;
  }
  &.el-switch .el-switch__core, &.el-switch .el-switch__label {
    width: 56px !important;
  }
}

.hey-form-item-switch {
  .el-switch__label--right {
    left: 0;
  }
  .el-switch__label--left {
    left: 22px;
  }
}

.no-file-item {
  .el-form-item__error {
    white-space: nowrap;
  }
}


::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  padding: 0;
}

//.password-form {
//  .el-icon-circle-close {
//    display: none;
//  }
//}

::-webkit-scrollbar-thumb {
  width: 8px;
  border-radius: 6px;
  background: rgba(128, 133, 144, .15);
  border-left: solid 2px rgba(128, 133, 144, .06);
  border-right: solid 2px rgba(128, 133, 144, .06);
}

@media screen and (max-width: 600px) {
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
    padding: 0;
  }

  ::-webkit-scrollbar-thumb {
    width: 0;
    border-radius: 0;
    background: transparent;
    border: none;
  }
}
.pswp {
  z-index: 9999!important;
}

.infinite-list-item {
  &:not(:last-child) {
  }
}
